package com.ruoyi.huoyun.message.mapper;

import java.util.List;
import com.ruoyi.huoyun.message.domain.LeaveMessage;

/**
 * 留言Mapper接口
 *
 * @author mj
 * @date 2021-11-29
 */
public interface LeaveMessageMapper
{
    /**
     * 查询留言
     *
     * @param leaveMessageId 留言主键
     * @return 留言
     */
    public LeaveMessage selectLeaveMessageByLeaveMessageId(String leaveMessageId);

    /**
     * 查询留言列表
     *
     * @param leaveMessage 留言
     * @return 留言集合
     */
    public List<LeaveMessage> selectLeaveMessageList(LeaveMessage leaveMessage);

    /**
     * 新增留言
     *
     * @param leaveMessage 留言
     * @return 结果
     */
    public int insertLeaveMessage(LeaveMessage leaveMessage);

    /**
     * 修改留言
     *
     * @param leaveMessage 留言
     * @return 结果
     */
    public int updateLeaveMessage(LeaveMessage leaveMessage);

    /**
     * 删除留言
     *
     * @param leaveMessageId 留言主键
     * @return 结果
     */
    public int deleteLeaveMessageByLeaveMessageId(String leaveMessageId);

    /**
     * 批量删除留言
     *
     * @param leaveMessageIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteLeaveMessageByLeaveMessageIds(String[] leaveMessageIds);
}
